<%@ page import="launchramp.Sponsor" %>



<div class="fieldcontain ${hasErrors(bean: sponsorInstance, field: 'firstName', 'error')} ">
	<label for="firstName">
		<g:message code="sponsor.firstName.label" default="First Name" />
		
	</label>
	<g:textField name="firstName" pattern="${sponsorInstance.constraints.firstName.matches}" value="${sponsorInstance?.firstName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sponsorInstance, field: 'lastName', 'error')} ">
	<label for="lastName">
		<g:message code="sponsor.lastName.label" default="Last Name" />
		
	</label>
	<g:textField name="lastName" pattern="${sponsorInstance.constraints.lastName.matches}" value="${sponsorInstance?.lastName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: sponsorInstance, field: 'creditCard', 'error')} required">
	<label for="creditCard">
		<g:message code="sponsor.creditCard.label" default="Credit Card" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="creditCard" type="number" value="${sponsorInstance.creditCard}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: sponsorInstance, field: 'secCode', 'error')} required">
	<label for="secCode">
		<g:message code="sponsor.secCode.label" default="Sec Code" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="secCode" type="number" value="${sponsorInstance.secCode}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: sponsorInstance, field: 'expDate', 'error')} required">
	<label for="expDate">
		<g:message code="sponsor.expDate.label" default="Exp Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="expDate" precision="day"  value="${sponsorInstance?.expDate}"  />
</div>

